package com.rongji.dfish.demo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * PubLoginUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PUB_LOGIN_USER")
public class PubLoginUser implements java.io.Serializable {

	// Fields

	private String userId;
	private String userName;
	private String loginName;
	private String userEmail;
	private String userPwd;
	private Date lastLoginTime;

	// Constructors

	/** default constructor */
	public PubLoginUser() {
	}

	/** minimal constructor */
	public PubLoginUser(String userId, String userName, String loginName) {
		this.userId = userId;
		this.userName = userName;
		this.loginName = loginName;
	}

	/** full constructor */
	public PubLoginUser(String userId, String userName, String loginName, String userEmail, String userPwd,
	        Date lastLoginTime) {
		this.userId = userId;
		this.userName = userName;
		this.loginName = loginName;
		this.userEmail = userEmail;
		this.userPwd = userPwd;
		this.lastLoginTime = lastLoginTime;
	}

	// Property accessors
	@Id
	@Column(name = "USER_ID", unique = true, nullable = false, length = 16)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "USER_NAME", nullable = false)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "LOGIN_NAME", unique = true, nullable = false)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "USER_EMAIL")
	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	@Column(name = "USER_PWD")
	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_LOGIN_TIME", length = 7)
	public Date getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

}